package com.sw.small_world.fragment.me.mycollect;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.view.View;

import com.sw.small_world.R;
import com.sw.small_world.activity.ClickButtonActivity;
import com.sw.small_world.activity.MainActivity;
import com.sw.small_world.fragment.base.BasePagerFragment;
import com.sw.small_world.fragment.base.FragmentFactory;
import com.sw.small_world.utils.CommonUtils;
import com.sw.small_world.utils.StartUtils;

/**
 * Created by Administrator on 2017/3/16.
 */

public class MyCollectFragment extends BasePagerFragment {

    private ClickButtonActivity activity;

    @Override
    protected Fragment setFragment(int position) {
        return FragmentFactory.createForMyCollect(position);
    }

    @Override
    protected String[] setTitles() {
        return CommonUtils.getStringArray(R.array.my_collect);
    }

    @Override
    protected void setActionBar() {
        activity = (ClickButtonActivity) getActivity();
        activity.tvTitle.setText("我的收藏");
    }
}
